package com.jiang.lianxi;

public class FuZhiYunSuanFu {
    public static void main(String[] args){
        //赋值运算符的用法
        //"="
        int a = 10;
        System.out.println(a);//10
        //"+="
        a += 1;
        System.out.println(a);//11
        //"-="
        a -= 1;
        System.out.println(a);//10
        //"*="
        a *= 1;
        System.out.println(a);//10
        //"/="
        a /= 1;
        System.out.println(a);//10
        //"%="
        a %= 1;
        System.out.println(a);//0
    }
}
